﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TeamFranceTriple
{
    public partial class ForumSignature : BaseUserControl
    {
        public string UpperText { get; set; }
        public string BottomText { get; set; }
        public string NavigateUrl { get; set; }
        public string ImageUrl { get; set; }
        public string AlternateText { get; set; }
        public Unit Width { get; set; }
        public Unit Height { get; set; }

        protected void Page_PreRender(object sender, EventArgs e)
        {
            UpperTextLabel.Text = this.UpperText;
            BottomTextLabel.Text = this.BottomText;
            HyperLink1.NavigateUrl = this.NavigateUrl;

            if (this.ImageUrl != String.Empty)
                Image1.ImageUrl = this.ImageUrl;
            else
                Image1.Visible = false;

            Image1.AlternateText = this.AlternateText;
            Image1.Width = this.Width;
            Image1.Height = this.Height;
        }
    }
}